import { SET_PROFILE_NAME } from "../actions/actionTypes";

const initialState = {
  name: "profile",
};

function reducer(state = initialState, action) {
  switch (action.type) {
    case SET_PROFILE_NAME:
      return { ...state, ...{ name: action.name } };
    default:
      return state;
  }
}

export default reducer;
